home *** CD-ROM | disk | FTP | other *** search
/ MacHack 1994 / MacHack 1994.toast / MacHack™94 / Miscellaneous / Randy Thelen / ThreadedBrot / Interfaces / DialogWindow.h < prev    next >
Encoding:
C/C++ Source or Header  |  1994-06-26  |  982 b   |  55 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        DialogWindow.h
  3.  
  4.     Contains:    Interfaces of a base class for Modeless Dialogs
  5.                 
  6.     Written by: Dave Falkenburg
  7.  
  8.     Copyright:    © 1993-94 by Dave Falkenburg, all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.     
  12.     To Do:
  13.  */
  14.  
  15. #ifndef        _DIALOGWINDOW_
  16. #define        _DIALOGWINDOW_
  17.  
  18. #ifndef        _WINDOW_
  19. #include    "Window.h"
  20. #endif
  21.  
  22. #ifndef        __DIALOGS__
  23. #include    <Dialogs.h>
  24. #endif
  25.  
  26. typedef    short    DialogTemplateID;
  27.  
  28.  
  29. class    TDialogWindow    :    public    TWindow
  30.     {
  31. protected:
  32.     DialogTemplateID    fTemplateID;
  33.     
  34. public:
  35.                         TDialogWindow(DialogTemplateID theDialogTemplate);
  36.  
  37.     virtual    Boolean        EventFilter(EventRecord *theEvent);
  38.  
  39.     virtual WindowPtr    MakeNewWindow(WindowPtr behindWindow);
  40.  
  41.     virtual    void        Idle(EventRecord *anEvent);
  42.     virtual void        Activate(Boolean activating);
  43.     virtual void        Draw(void);
  44.     virtual void        Click(EventRecord *anEvent);
  45.  
  46.     virtual    Boolean        CanEdit(void);
  47.     virtual    void        DoEditMenu(short item);
  48.     
  49. //    New methods:
  50.  
  51.     virtual    void        ItemHit(short theItem);
  52.     };
  53.  
  54. #endif
  55.